package wangn.adt.base;

public class Tri<T,E,V> {
    private T first;
    private E second;
    private V third;

    public Tri(T first, E second, V third) {
        this.first = first;
        this.second = second;
        this.third = third;
    }

    public Tri(){}

    public T getFirst() {
        return first;
    }

    public void setFirst(T first) {
        this.first = first;
    }

    public E getSecond() {
        return second;
    }

    public void setSecond(E second) {
        this.second = second;
    }

    public V getThird() {
        return third;
    }

    public void setThird(V third) {
        this.third = third;
    }

    @Override
    public String toString(){
        return getFirst()+","+getSecond()+","+getThird();
    }
}
